package com.ns.sbs.oauth.rent.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ns.core.entry.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 服务菜单
 *
 * @author: lw
 * @since: 2024/09/13 12:55
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@Accessors(chain = true)
@TableName(value = "KERNEL_RENT")
public class RentEntry extends BaseModel {
    /**
     * 此模块对应的表名
     */
    public static final String TABLE_NAME = "KERNEL_RENT";
    /**
     * 唯一标识
     */
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 租户名称
     */
    private String name;
    /**
     * 编码
     */
    private String code;

    /**
     * 电话号码
     */
    private String phone;

    /**
     * 唯一标识
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long accId;
}
